using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace sip_client3
{
    public partial class Chatik : Form
    {
        Form1 form1;
        int i = 0;
        string od;
        string textik;

        public void setForm(Form1 form){
            form1=form;
        }

        public void prislaSprava(string from, string text)
        {
            od = from;
            textik = text;
            //MessageBox.Show("je tu !");
        }

        public void zmen() {
            //MessageBox.Show("hoj");
            this.Text = i + ". zmena";
            i++;
            button1.Text = od.ToString();
            this.Text = textik.ToString();
        }

        public Chatik()
        {
            od = "nekoho";
            textik = "neco";
            InitializeComponent();
            //this.Text = "prva zmena";
            this.ResumeLayout(true);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            zmen();
        }

        private void Chatik_GotFocus(object sender, EventArgs e)
        {

        }

    }
}